import { createRouter, createWebHistory } from 'vue-router'
import MaintenanceView from '../views/4xx&5xx/MaintenanceView.vue'
import NotFoundView from '../views/4xx&5xx/NotFoundView.vue'
import NavigationView from '../views/NavigationView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Nav',
      component: NavigationView,
    }, 
    {
      path: '/maintenance',
      name: 'maintenance',
      component: MaintenanceView,
    },
    {
      path: '/tec',
      name: 'tec',
      component: () => import('../views/tec.vue'),
    },
    {
      path: '/lives',
      name: 'lives',
      component: () => import('../views/photo.vue'),
    },
    // 404 页面 - 捕获所有未匹配的路由
    {
      path: '/:pathMatch(.*)*',
      name: 'not-found',
      component: NotFoundView,
    }
  ],
})

export default router
